package com.bcqn.service;

import com.bcqn.dao.AdviceMapper;
import com.bcqn.model.Advice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AdviceService {

    @Resource
    private AdviceMapper adviceMapper;

    /**
     * 插入意见反馈
     *
     * @param advice
     * @return
     */
    public int insertAdvice(Advice advice) {
        return adviceMapper.insertSelective(advice);
    }
}
